#include <stdio.h>
int max(int b[3][4]) //or b[][4]
{
    int max1 = b[0][0]; 
    for(int i = 0; i < 3; i ++)
        for(int j = 0; j < 4; j ++)
            if(b[i][j] > max1)
            {
                max1 = b[i][j];
            }
    return max1;
}
int main()
{
    int a[3][4] = {5,16,30,40,23,4,123,8,1,3,50,37};
    int m = max(a);
    printf("max is %d", m);
}


